<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
<title></title>
</head>
<body>
<h3>6的倍数，个位数加上十位数等于百位数的三位数</h3>
<script type="text/javascript">
    for(var i=100; i<=999; i++){
        if(i % 6 == 0 && Math.floor(i/100) == Math.floor(i%100/10) + Math.floor(i%100%10)){
            document.write(i+" ");
        }
    }
</script>
</body>
</html>
